package com.example.zhang.controller;

import com.example.zhang.vo.Bj;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/boot")
public class helloController {
	@RequestMapping("/hi")
	public String hellospringboot() {
		return "yes, you did it!";
	}
	@RequestMapping("json")
	public Bj json()
	{
		Bj b = new Bj();
		b.setId(1);
		b.setBjname("计开发3班");
		return b;
	}

}